<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>day02上午作业</title>
</head>
<body>
    <!-- 求两个数中 较大的值 并打印输出在控制台 -->
    <script>
        var num1 = prompt("请输入第一个数")
        var num2 = prompt("请输入第二个数")
        if(num1>num2){
            console.log(num1);
            
        }else{
            console.log(num2);
             
        }
        
        
    </script>
</body>
</html>